package com.showsu.editor.session;

/**
 * @Author: William
 * @Description: session的基类
 * @Date: Created in 11:10 上午 2024/9/20
 * @Modified By:
 */
public abstract class AbstractSession implements ISession {

    protected final String sessionId;

    protected final Long userId;

    public AbstractSession(String sessionId, Long userId){
        this.sessionId = sessionId;
        this.userId = userId;
    }

    @Override
    public String getSessionId() throws SessionException {
        return sessionId;
    }

    @Override
    public Long getUserId() throws SessionException {
        return userId;
    }
}
